<?php
/**
 * Pipahr
 * @author Randy Zhao
 * @copyright 2013 pipahr.com
 */
defined('_JEXEC') or die;

// disable core styles to avoid bs conflict
OC_Util::$core_styles = array();

if ( isDevMode() ) {
   OCP\Util::addStyle('calendar', 'reject');
   OCP\Util::addStyle('themes/jobs/core/js/jquery/jquery-timepicker', 'jquery.timepicker');
   OCP\Util::addscript('calendar', 'reject');
   OCP\Util::addscript('themes/jobs/core/js/jquery/jquery-timepicker', 'jquery.timepicker');
} else {
   OCP\Util::addStyle('static', 'clndr.reject');
   OCP\Util::addScript('static', 'apps/calendar.reject.min');
}
$data = $_['basicInfo'];
?>
<script type="text/javascript" src="<?php echo OC_Helper::linkTo("", "themes/jobs/core/js/jquery/langs/jquery.ui.datepicker-zh-CN.js");?>"></script>
<form action="<?php echo OC_Helper::linkToRoute("calendar_reject");?>" method="post" name="rejectform" id="rejectform">
<div class="row-fluid hr_oneconn_margin">
   <div class="span12 oneconn_box">
      <div class="lgrg_form">
         <div class="hr_inputinfo">
            <div class="hr_newstip">
               <span><?=$data->name?></span>，您好！
               <br/>
               请告知您无法参加面试的原因：
            </div>
            <div class="hr_testerinfo_input">
               <div class="hr_testinfo_form">
                     <div class="hr_form_group clearfix">
                        <div class="hr_controls" style="margin-left:247px;">
                           <label class="radio"><input type="radio" name="reason" value="希望更改其他时间" style="margin-top:7px;"> 
                               希望更改其他时间
	                           <input type="text" class="input-small" value="<?php echo JHTML::_('date',$data->startdate,'Y-m-d')?>" name="from" id="from">
	                           <input type="text" class="input-mini" value="<?php echo JHTML::_('date',$data->startdate,'H:i')?>" name="fromtime" id="fromtime">
                           </label>
                           <label class="radio"><input type="radio" name="reason" value="已有其他更好的机会"> 已有其他更好的机会</label>
                           <label class="radio"><input type="radio" name="reason" value="对该职位已无兴趣"> 对该职位已无兴趣</label>
                           <label class="radio"><input type="radio" name="reason" value="不再打算换工作"> 不再打算换工作</label>
                           <label class="radio"><input type="radio" name="reason" value="其他"> 其他</label>
                        </div>
                     </div>
                     <div class="hr_form_group clearfix">
                        <div class="hr_controls" style="margin-left:250px;">
                           <input type="button" class="ppp_bluebtn" value="提 交" id="reject_confirm" />
                           <input type="hidden" name="jobseekerid" value="<?=$data->jobseekerid?>"/>
                           <input type="hidden" name="jobid" value="<?=$data->jobid?>"/>
                           <input type="hidden" name="companyid" value="<?=$data->companyid?>"/>
                           <input type="hidden" name="requesttoken" value="<?=$_['requesttoken']?>" id="requesttoken">
                           &nbsp;<span class="server"></span>
                           <a href="about:blank" class="closewin">我会按时参加面试，关闭页面</a>
                        </div>
                     </div>
               </div>
            </div>
         </div>
      </div>
   </div>
</div>

<div class="modal hide fade rejectconfirmdialog" id="rejectconfirmdialog">
   <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
      <h3>&nbsp;</h3>
   </div>
   <div class="modal-body">
      <p class="yahei">确认放弃该职位的面试机会？</p>
      <div class="btnaligncenter medium">
         <input class="ppp_bluebtn" type="submit" value="确 认" id="reject_submit"/>
      </div>
   </div>
</div>
</form>